package cn.iocoder.yudao.module.bpm.framework.web.config;

import org.springdoc.core.GroupedOpenApi;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * bpm 模块的 web 组件的 Configuration
 *
 * @author 芋道源码
 */
@Configuration(proxyBeanMethods = false)
public class BpmWebConfiguration {

    /**
     * bpm 模块的 API 分组
     */
    @Bean
    public GroupedOpenApi bpmGroupedOpenApi() {
        return GroupedOpenApi.builder()
                .group("bpm")
                .pathsToMatch("/admin-api/bpm/**", "/app-api/bpm/**")
//                .addOperationCustomizer((operation, handlerMethod) -> operation
//                        .addParametersItem(buildTenantHeaderParameter())
//                        .addParametersItem(buildSecurityHeaderParameter()))
                .build();
    }

}

